
package org.apache.mina.common;

/**
 * A configuration which is used to configure {@link IoAcceptor}.
 * 
 * IoAcceptor的配置。
 */
public interface IoAcceptorConfig extends IoServiceConfig {
    /**
     * Returns <tt>true</tt> if and only if all clients are disconnected when
     * this acceptor unbinds the related local address.
     * 
     * 判断如果当acceptor解绑定与之相关的本地地址时，所有的客户端将是否断开连接
     */
    boolean isDisconnectOnUnbind();

    /**
     * Sets whether all clients are disconnected when this acceptor unbinds the
     * related local address. The default value is <tt>true</tt>.
     * 
     * 设置如果当acceptor解绑定与之相关的本地地址时，所有的客户端将是否断开连接
     */
    void setDisconnectOnUnbind(boolean disconnectOnUnbind);
}
